#{extends 'orgLead.html' /}

<title> ${org.name}</title>
#{if deps}
<ul>
#{list items: deps, as:'dep'}
<li><a href = "@{Application.viewDepartment(dep.id)}"> ${dep.name}</a><br/></li>
#{/list}
#{/if}
#{else}
No Departments in ${org.name} Organization!!
#{/else}
</ul>

<br><br>
<a href = "@{Application.showOrg(org.id)}">Back to ${org.name}</a>